<!DOCTYPE html>
<html>
 <head> 
  <title>网站中使用flowplayer视频播放器(1)--闫海的个人博客-芒果小叨</title> 
  <!-- meta tags start --> 
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
  <meta name="Keywords" content="个人博客,闫海个人博客,flowplayer,网站播放器,网站视频,网站流媒体" /> 
  <meta name="Description" content="网站中使用flowplayer视频播放器的相关探讨。" /> 
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" /> 
  <!-- meta tags end -->
  <!-- favorite icon starts -->
  <link rel="shortcut icon" href="/Public/Index/mobile/images/common/favicon.ico" type="image/x-icon" />
  <!-- favorite icon ends -->
  <!-- CSS files start -->
  <link href="/Public/Index/mobile/css/framework.css" rel="stylesheet" type="text/css" media="all" />
  <link href="/Public/Index/mobile/css/colorbox.css" rel="stylesheet" type="text/css" media="all" />
  <link href="/Public/Index/mobile/css/responsive.css" rel="stylesheet" type="text/css" media="screen" />
  <link href="/Public/Index/mobile/css/hidpi.css" rel="stylesheet" type="text/css" media="screen" />
  <link href="/Public/Index/mobile/css/skin.css" rel="stylesheet" type="text/css" media="all" />
  <link href="/Public/Index/mobile/css/custom.css" rel="stylesheet" type="text/css" media="all" />
  <link href="/Public/Index/mobile/css/elements.css" rel="stylesheet" type="text/css" media="all" />
  <link href="/Public/Index/mobile/css/style.css" rel="stylesheet" type="text/css" media="all" />
  
  <!-- CSS files end -->
  <!-- JavaScript files start --> 
  <script type="text/javascript" src="/Public/Index/mobile/grayscale.js"></script>
  <script type="text/javascript" src="/Public/Index/mobile/js/jquery.min.js"></script>
  <script type="text/javascript" src="/Public/Index/mobile/js/effects.jquery-ui.min.js"></script>
  <script type="text/javascript" src="/Public/Index/mobile/js/jquery.nivo-slider.min.js"></script>
  <script type="text/javascript" src="/Public/Index/mobile/js/custom.js"></script>
  <script type="text/javascript" src="/Public/Index/mobile/js/jquery.colorbox.min.js"></script>
  
  <!-- JavaScript files end -->
 </head>
 <body>
  <!-- website wrapper starts -->
  <div class="websiteWrapper"> 
   <!-- main menu wrapper starts --> 
   <div class="mainMenuOuterWrapper"> 
    <a href="#" class="mainMenuCloseButton"></a> 
    <ul class="mainMenuWrapper"> 
     <li class="currentPage"><a href='/mobile.php/index.html' title='首页'>首页</a></li>
      <li><a href='/mobile.php/list/2.html' title='关于我'>关于我<span> </span></a></li><li><a href='/mobile.php/list/3.html' title='时光轴'>时光轴<span> </span></a></li><li><a href='/mobile.php/list/1.html' title='品味人生'>品味人生<span> </span></a></li><li><a href='/mobile.php/list/5.html' title='技术分享'>技术分享<span> </span></a></li>     <li><a href='/mobile.php/index/article/message.html'  title='给我留言'>给我留言</a></li>
    </ul> 
   </div> 
   <!-- main menu wrapper ends --> 

<script type="text/javascript">
  var url = '/mobile.php/article';
  $(function(){
    var id = '34';
    $.post(url+'/addClick',{'id':id},function(data){
        $("#pclick").html('点击数：' + data);
    });
  })
</script>
   <!-- header wrapper starts --> 
   <div class="headerOuterWrapper pageHeaderWrapper"> 
    <div class="headerWrapper"> 
     <a class="mainLogo" href="/mobile.php/index.html"><img src="/Public/Index/mobile/images/mainLogo.png" alt="" /></a> 
     <a href="#" class="mainMenuButton"></a>
    </div>
    <!-- page title starts --> 
    <h5 class="pageTitle">当前位置：
	<a href="/mobile.php/index.html">首页</a>&nbsp;&gt;&nbsp;
	<a href="/mobile.php/list/5.html">技术分享</a>
	&nbsp;&gt;&nbsp;<a href="/mobile.php/list/15.html">其他</a>
	</h5>    <!-- page title ends --> 
   </div>
   <!-- header wrapper ends --> 
   <!-- page wrapper starts --> 
   <div class="pageWrapper singlePostPageWrapper"> 
    <!-- post content wrapper starts --> 
    <div class="singlePostContentWrapper">
    <h3 class="pageTitle" style="background:#F0F0F0;color:#333;text-align:center;">网站中使用flowplayer视频播放器(1)</h3> 
     <div class="pageSpacer"></div> 
     <div class="pageSpacer"></div> 
     <div style="word-break: break-all;" class="phoneContent"><p><span style="font-family: 微软雅黑,Microsoft YaHei; color: rgb(0, 112, 192);">解压flowplayer，并放入jquery文件<br/></span></p><p style="text-align:center"><img src="/Uploads/ueditor/image/20150213/54dd680b5c29a.jpg" alt="54dd680b5c29a.jpg"/></p><p><span style="font-family: 微软雅黑,Microsoft YaHei; color: rgb(0, 112, 192);">自动加载flowplayer比较容易，建立html5项目，引入jquery，flowplayer和flowplayer播放样式。放入含有flowplayer类的div中即可<br/></span></p><p style="text-align:center"><img alt="2.jpg" src="/Uploads/ueditor/image/20150213/54dd688123cda.jpg" title="54dd688123cda.jpg"/></p><p><span style="font-family: 微软雅黑,Microsoft YaHei; color: rgb(0, 112, 192);">看看效果<br/></span></p><p style="text-align:center"><img src="/Uploads/ueditor/image/20150213/54dd68acf3cff.jpg" title="54dd68acf3cff.jpg" alt="3.jpg"/></p><p><span style="font-family: 微软雅黑,Microsoft YaHei; color: rgb(0, 112, 192);">自定义类名<br/></span></p><p style="text-align:center"><img alt="4.jpg" src="/Uploads/ueditor/image/20150213/54dd68cd01427.jpg" title="54dd68cd01427.jpg"/></p><p><span style="font-family: 微软雅黑,Microsoft YaHei; color: rgb(0, 112, 192);">可以为video标签添加属性：<br/>autoplay&nbsp; 自动播放&nbsp; &nbsp;<br/>loop&nbsp; 循环播放<br/>preload=“none”&nbsp; 禁止预载入<br/>poster=“../images/1.jpg”&nbsp; 自定义封面图像 设置后会自动生成is-poster类<br/><br/>添加了自定义封面图像后，通过改变css可以实现动画效果，例如<br/>设置图片延迟0.5秒后用1秒从最上方50%的大小过度到中央100%的大小<br/></span></p><p style="text-align:center"><img alt="5.jpg" src="/Uploads/ueditor/image/20150213/54dd68ddb4ff4.jpg" title="54dd68ddb4ff4.jpg"/></p><p><span style="font-family: 微软雅黑,Microsoft YaHei; color: rgb(0, 112, 192);">flowplayer会改变自身div的类，例如鼠标悬停会增加is-mouseover，鼠标移出会改为is-mouseout，播放时会增加is-playing，暂停时会改为is-paused。类似的，也可以像扩展is-poster类一样，扩展这些类来改变css样式。<br/><br/>如果页面中有多个视频，html5下默认是会加载所有播放的内容。<br/></span></p><p style="text-align:center"><img alt="6.jpg" src="/Uploads/ueditor/image/20150213/54dd68ee274cd.jpg" title="54dd68ee274cd.jpg"/></p><p><span style="font-family: 微软雅黑,Microsoft YaHei; color: rgb(0, 112, 192);">这种情况下可以使用引导页面的功能，这样页面只会加载封面图片图片，当点击播放的时候才会加载当前的播放内容，点击播放其他内容会关闭当前播放的内容。可以对比一下引导功能与自定义poster的区别：<br/><br/></span></p><p style="text-align:center"><img alt="7.jpg" src="/Uploads/ueditor/image/20150213/54dd690a06214.jpg" title="54dd690a06214.jpg"/></p><p style="text-align: center;"><img alt="8.jpg" src="/Uploads/ueditor/image/20150213/54dd6910be462.jpg" title="54dd6910be462.jpg"/></p></div>
     <div class="textBreak"></div> 
    </div> 
    <!-- post content wrapper ends --> 
    <!-- post info starts --> 
    <div class="singlePostInfoWrapper">
     <span class="singleIconWrapper singleIconText iconCalendarDark postInfo postDate">2015-02-13</span>
     <a class="singleIconWrapper singleIconText iconEditDark postInfo postAuthor postInfoNoMargin">小叨</a>&nbsp;&nbsp;
     <span class="singleIconWrapper singleIconText iconArrowRightDark" id="pclick">点击数：199</span>
    </div> 
    <!-- post info ends --> 
    <!-- post links wrapper starts --> 
    <div class="singlePostContentWrapper"> 
     <p>上一篇：<a href="/mobile.php/article/6.html">metinfo------SEO相关</a></p>
     <p>下一篇：<a href="/mobile.php/article/40.html">简述大并发,大流量,大存储相关解决方案</a></p>
    </div> 
    <!-- post links wrapper ends --> 
    <!-- comments section wrapper starts --> 
    <div class="commentsSectionWrapper"> 
     <h4 class="commentsTitle">相关阅读：</h4> 
     <!-- comments wrapper starts --> 
     <!-- accordion item wrapper starts --> 
        <div class="accordionContent"> 
         <p><a href="/mobile.php/article/40.html" title="简述大并发,大流量,大存储相关解决方案">简述大并发,大流量,大存储相关解决方案</a></p><p><a href="/mobile.php/article/34.html" title="网站中使用flowplayer视频播放器(1)">网站中使用flowplayer视频播放器(1)</a></p><p><a href="/mobile.php/article/6.html" title="metinfo------SEO相关">metinfo------SEO相关</a></p><p><a href="/mobile.php/article/2.html" title="dede更新网站:读取频道信息失败,无法进行后续操作">dede更新网站:读取频道信息失败,无法进行后续操作</a></p>        </div> 
     <!-- accordion item wrapper ends -->
     <!-- coments wrapper ends --> 
    </div> 
    <!-- comments section wrapper ends --> 
   </div> 
   <!-- page wrapper ends --> 
   <!-- footer wrapper starts --> 
   <div class="footerWrapper"> 
    <!-- copyright wrapper starts --> 
    <div class="copyrightWrapper"> 
     <!-- copyright starts --> 
     <span class="copyright"><a href="http://www.miitbeian.gov.cn/">鲁ICP备15004472号-1</a></span> 
     <!-- copyright ends --> 
     <!-- back to top button starts --> 
     <a href="" class="backToTopButton"></a> 
     <!-- back to top button ends --> 
    </div> 
    <!-- copyright wrapper ends --> 
   </div> 
   <!-- footer wrapper ends --> 
  </div>
  <!-- website wrapper ends -->
 </body>
</html>